mcs lock bugfix