Made static mutex into member variable