fix(macos): restore Homebrew sandbox callbacks (#2739)