Prevent race condition that caused a circular require warning.

Because our serializers use `autoload`, the multi-threading
in this spec could cause a circular require warning, which
could cause a build failure due to our `capture_warnings` logic.