SERVER-14668 Move lock acquisition further down in receivedInsert
SERVER-14668 Move top-level locks (Global and Commit) to the Lock Manager

o Adds the global and flush lock resources and begin/end transaction calls
to delimit where lock acquisition would start and end.

o Gets rid of the QLock and changes durability to use a single flush
thread, which is activated when commit is requested.