s3:g_lock: convert to use only dbwrap wrapper functions.