softae: verify we have enough samples in WriteSink

Some other thread may have killed the buffer behind our backs
softae: make sure we hold sink lock when we kill of sinks