SERVER-15921 Check if we have a lock state before taking any locks in
the kv catalog. The assumption is that no lock state means we are in an
inherently single-threaded code block (like startup).
Merge branch 'server15921' into kv_dictionary