[PATCH 6.1 111/131] tee: amdtee: fix use-after-free vulnerability in amdtee_close_session