nicesink: Unlock a blocking send when flushing or state changes