modified the Mutex class to hold that dynamic initialization scenario