[PATCH 4.19 054/239] tee: fix put order in teedev_close_context()