SPM: Improve logic of "psa_reply()"

Connection handle is used by backend "replying" function,
even after the connection handle is freed back to the pool.

This patch fixes this issue, adds one handle status
"TFM_HANDLE_STATUS_TO_FREE" to flag the handle, and free
it after it is used. Also remove the handle status
"TFM_HANDLE_STATUS_CONNECT_ERROR" since SPM does not really
care about and use this status.

The changes can improve the logic in "psa_reply()" function body.

Signed-off-by: Mingyang Sun <mingyang.sun@arm.com>
Change-Id: I113fdfc7efe5f32a1d7a2cb9b1560acd8568ec75
4 files changed