server: avoid sending uninitialized bytes in break_thread()