[Bridge + 8021q] Bug fix in if_set_mode

* there were some logical errors on setting an interface mode
to access/trunk.

Signed-off-by: Claudiu Ghioc <claudiu.ghioc@gmail.com>