tipc: refactor function tipc_enable_bearer()