resource_native_helpers: Add set_acquired() helper for StateDumps