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