Fix crash in brcm_request() when ast_channel *tmp is NULL
In brcm_request() there were posibilities that we called ast_channel_name(tmp) when tmp is NULL, it leads to crash. Also fixed other deadlock possibilities where mutex would not be unlocked in some cases.