Naive locking around build_requested for race condition (AUE-382)

Lock around build requested to avoid a scenario where builds that are requested
are not made.