Fix deadlock issues for enter classroom and start exam