RSTP: state machine bugfix