Replaced mutex related code in Common.h