[PATCH openEuler-1.0-LTS 2/3] nbd: factor out a helper to get nbd_config without holding 'config_lock'