HBASE-20846, we restore lock info for procedures. But, there is a case that the lock and be held by a already success procedure. Since the procedure won't execute again, the lock will held by the procedure forever.
1. All children for pid=1208 had been finished, but before procedure 1208 awake, the master was killed
2. Master restarts, since procedure 1208 held the lock before restart, so the lock was resotore for it
3. Since procedure 1208 is success, it won't execute later, so the lock will be held by it forever
We need to check the state of the procedure before restoring locks, if the procedure is already finished (success or rollback), we do not need to acquire lock for it.