[PATCH 5.9 524/757] rpmsg: Avoid double-free in mtk_rpmsg_register_device