SERVER-12993 don't take write lock until a valid insert is detected
SERVER-13069 nicer and slightly less verbose distributed lock messages
Merge remote-tracking branch 'upstream/master'