Lock DID so only one process can build there at a time.