lockfile: convert retry timeout computations to millisecond