fixed locking (was blocking send when timeout used)