Move information about using shared runners to `ci_pending_builds`
Description
The big queuing SQL query looks for information about if a build can be picked by shared runners, depending on whether the shared runners are enabled for its context or not, and other reasons.
We can denormalize this information and store in ci_pending_builds
to accelerate the big query.
Edited by Grzegorz Bizon