Add tree cache expire TTL

Many programs lock file that need to access immediately. If using
a TTL larger than 0 makes these programs unusable to work properly.
Default value is 0.