support write timeout & write lock, simplify auth timeout