client: invalidate kernel dentries one by one

Our trick to trim the whole dentry tree does not work for 3.18+ kernel.
The fix is iterate the session cap list and trim dentries one by one.

Fixes: #9997
Signed-off-by: Yan, Zheng <zyan@redhat.com>