As requested at https://lists.gnu.org/archive/html/emacs-devel/2021-11/msg00152.html, the attached patch documents a problem that may happen when Emacs is opened on macOS for the first time.