Lock dp_config_rwlock before calling dsl_scan_visit