Protect UDP packet thread.