[PATCH 5.16 0145/1039] tee: fix put order in teedev_close_context()