Turbopack: Fix images.remotePatterns port/protocol serialization (#47721)
By default, `serde-json` will transform a `None` into a `null` value, and Next's [default image loader][loader] will perform strict `=== undefined` [equality checks][checks] on the fields. Because `null !== undefined`, a missing `protocol` or `port` will always be checked, and `null` will never match either.
Fixes #46758
Fixes vercel/turbo#4347
Fixes WEB-770
fix NEXT-793 ([link](https://linear.app/vercel/issue/NEXT-793))
[loader]: https://github.com/vercel/next.js/blob/35cf930572f70fb7f64bbccce833584c14b9da0c/packages/next/src/shared/lib/image-loader.ts#L50
[checks]: https://github.com/vercel/next.js/blob/35cf930572f70fb7f64bbccce833584c14b9da0c/packages/next/src/shared/lib/match-remote-pattern.ts#L5