add initial support for purging locks when all peers reach a safe point.