[TO_STAGE] Ensuring consistency for atomically adding/removing pending_op_groups/ssh_keys