smbd: make it possible to change the write time delay for testing