expire the dirents_cache correctly and fix a bug discussed before

see more https://github.com/haiwen/seafile-client/pull/258#discussion_r19922864