Added lock for allowing parallel builds