Fixed a concurrency issue causing builds to never complete