[scheduling] Fix deadlock. Whoops. (We may need to move to a recursive_mutex here.)