Refactor mutex class variable