send_pack: simplify condition guarding whether a pack is sent