commiting changes of mutex