net: bridge: add a br_set_state helper function