kernel: Implement ping timeout mechanism