[PATCH 5.15 131/846] tee: fix put order in teedev_close_context()