Tested ACK.
Please close this diff.
Hi Fabien,
This fix should be reproducible when compiling on macOS with the following steps:
https://github.com/bitcoin/bitcoin/pull/17118