Fix a bug around the computation of zookeeper lockfile expirations.