Add mutex to Level class.