disable interrupts in critical sections, block write on full sendbuffer