yaz-ztest: fix bad usage of session handle