tests: Fix test_shadow_sessions descriptor leak

This test case used to leave an open file descriptor, together with some
corresponding resources allocated in mount. The resources weren't freed
during mount termination and caused a valgrind warning.

Change-Id: I5f13da495d50da732acfc59e4bab3257f73e8a6e