Fix checking for globalLock on mongo versions that don't have it. Closes #38