fix WResource multi-threading regression for dynamic resources