Turn $staleTimestamp into $staleDuration for readLock()/writeLock().