macOS: Fix deprecation warning
clang warns that
'kIOMasterPortDefault' is deprecated: first deprecated in macOS 12.0
and while the Apple IOKit documentation [1] tells us that one can use
NULL (except it has to be 0, as mach_port_t is an unsigned int) instead,
the correct replacement is kIOMainPortDefault.
[1] https://developer.apple.com/documentation/iokit/kiomasterportdefault?language=objc
Pick-to: 6.8
Change-Id: I66297828d408b607643cf4ac6d1dd103e3400ade
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>