Description
There is a race condition in BusFactory that can lead to deadlocks. If one threads calls getThreadDefaultBus(true) while another thread is calling getDefaultBus(true), it can lock up as the first thread blocks waiting to call getDefaultBus(), but the second will block calling maybeSetThreadBus.