Check that scheduler is initialized before locking.