mlxsw: spectrum: Disable learning according to STP state