[PATCH 4/9] packet_get(): workaround select() bug