Backport two can_c patches to improve SocketCAN stability.