xen-netback: Handle backend state transitions in a more robust way