implement file lock based on peername to prevent running two RefreshPeer at a time.