Zza Node/Mongo: fix lookup race condition by moving counter to top of method, in sync part, out of async callback.