Backported from 9.12 version, adds support for stale-answer-enable option, as well stale-answer-ttl and max-stale-ttl.