fusefs: fix some memory leaks in the tests
(cherry picked from commit 39f5d8dd1b2fea7cff0770efb0bc3d6e33e24279)