Fixed a deadlock during the bootstrap.