SERVER-14668: Replace uses of DBWrite lock with DBLock

Make the lock mode explicit as preparation to move some to intent locks,
and use proper database name instead of full namespace string to lock
databases.