tee: export teedev_open() and teedev_close_context()