Concurrent calls to ctdbAllocSession() crashing on Windows
A crash was occasionally seen on Windows systems in a small number of situations when multiple threads were making concurrent calls to ctdbAllocSession(). The logic has been changed to correct this.