frontend: optimize /backend/pending-jobs/ json rendering
Make sure that get_build_record() doesn't generate ORM sub-queries, so
the whole bunch of builds is loaded by single (joinedload'ed) query.
As a part of ^^, also drop the build_config part from the result which
generated whole bunch of queries providing data that wasn't used on
backend.