Fix race condition for simultaneous requests

If a build is already queued, do not requeue it.