NX-620: Concurrency issue with document updates

Using UID locking for now, as it seems NPM eagerly
requests even on multiple threads (as transitive deps
are resolved) for same package, that in some rare cases
causes concurrency updates that fail due to optimistic
locking in Orient.