Improvements to database startup logic

so the mutex has been unlocked by the time we try to connect to the transient store?
What happens if some other process gets to this line before the initial process?