Fix concurrency safety issues regarding ConnectPlayerCallback