Ensure lock for builds when listing jobs via debug api
What does this MR do?
Uses the mutex we have for accessing b.builds
.
Why was this MR needed?
Everything else accessing b.builds
uses this lock.
What's the best way to test this MR?
Ensure jobs list still works.