[#1503]Fix a bug which incorrectly canceled keys for DatagramPackets when the epoll workaround was used