SERVER-136425Needs Scheduling

Make QueryLifespan::get() threadsafe

In https://jira.mongodb.org/browse/SERVER-116447 we duplicate query settings ([https://app.graphite.com/github/pr/10gen/mongo/63905]). It would be much better to just read them directly from decoration which [https://app.graphite.com/github/pr/10gen/mongo/63864] attempted to do, but as currently the lifespan is not thread-safe we ended up with too many locks.

Affected Versions
Versions known to exhibit this issue

No affected versions recorded.

Fixed Versions
Versions that include the fix

No fix available yet.

Components
Server components related to this issue

No components specified.

Labels
Tags and classification

No labels assigned.