HDFS-7340. Make rollingUpgrade start/finalize idempotent. Contributed by Jing Zhao.