Fix: pengine: Order demote/promote of resources on remote nodes to happen only once the connection is up