[PATCH 5.0 099/238] soc: qcom: rpmh: Avoid accessing freed memory from batch API