smbd: implement the strange write time update logic