Prevent protocol thread deadlock