[PATCH 4.19 172/280] soc: qcom: rpmh: Avoid accessing freed memory from batch API