[PATCH v2 4/7] tee: fix put order in teedev_close_context()