Repository: flutter
Issue: Bluetooth permission is asked by the terminal instead of the app on MacOS
Labels: framework,platform-mac,a: desktop,has reproducible steps,P2,found in release: 2.8,team-macos,triaged-macos

## Steps to Reproduce

1. `flutter create --org com.example --template=plugin --platforms=macOS permissions`
2. Go to info.plist and add  the`Privacy - Bluetooth Always Usage Description` key
3. In App Sandbox settings add `Bluetooth` for `Debug and Profile`
4. Use this code in `MainFlutterWindow`:
```swift
import Cocoa
import FlutterMacOS
import CoreBluetooth

class MainFlutterWindow: NSWindow {
    var centralManager: CBCentralManager!
    
  override func awakeFromNib() {
    let flutterViewController = FlutterViewController.init()
    let windowFrame = self.frame
    self.contentViewController = flutterViewController
    self.setFrame(windowFrame, display: true)

    RegisterGeneratedPlugins(registry: flutterViewController)
      
      centralManager = CBCentralManager(delegate: self, queue: nil)


    super.awakeFromNib()
  }
}

extension MainFlutterWindow: CBCentralManagerDelegate {
    func centralManagerDidUpdateState(_ central: CBCentralManager) {
    }
}
```
5. Execute `flutter run`

**Expected results:**
The `permissions` app should be asking for the Bluetooth permission.

**Actual results:**
The `terminal` app is asking for the Bluetooth permission instead. That essentially casts the app useless as it still cannot use Bluetooth. The same behaviour happens with VSCode where VSCode itself asks for the Bluetooth permission instead of the app.
At the same time the `location` permission is asked correctly by the `permissions` app as it is supposed to. I tested this on all stable, beta and dev channels.

<img width="798" alt="Screenshot 2022-01-09 at 18 01 00" src="https://user-images.githubusercontent.com/2326415/148693342-9eda4cc9-2631-44b3-a2ac-fa5c9b6d0716.png">

⚠️ If I run the generated .app from finder or run it through Xcode then the Bluetooth permission is correctly asked by the app as it should. Only when Flutter is "attached" the issue happens.

<details>
<summary>Code sample</summary>

[permissions.zip](https://github.com/flutter/flutter/files/7835557/permissions.zip)

</details>

<!--
     Run `flutter analyze` and attach any output of that command below.
     If there are any analysis errors, try resolving them before filing this issue.
-->

```
example % flutter analyze
Analyzing example...                                                    
No issues found! (ran in 12.0s)
```

<!-- Finally, paste the output of running `flutter doctor -v` here. -->

```
[✓] Flutter (Channel dev, 2.9.0-0.1.pre, on macOS 12.0.1 21A559 darwin-arm, locale en-DE)
    • Flutter version 2.9.0-0.1.pre at /opt/homebrew/Caskroom/flutter/2.5.0/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 8f1f9c10f0 (4 weeks ago), 2021-12-14 13:41:48 -0800
    • Engine revision 234aca678a
    • Dart version 2.16.0 (build 2.16.0-80.1.beta)
    • DevTools version 2.9.1

[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
    • Android SDK at /Users/fotidim/Library/Android/sdk
    • Platform android-31, build-tools 31.0.0
    • Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 13.2.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • CocoaPods version 1.11.2

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2020.3)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)

[✓] VS Code (version 1.63.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.32.0

[✓] Connected device (2 available)
    • macOS (desktop) • macos  • darwin-arm64   • macOS 12.0.1 21A559 darwin-arm
    • Chrome (web)    • chrome • web-javascript • Google Chrome 97.0.4692.71
    ! Error: iPhone 13 Pro is not connected. Xcode will continue when iPhone 13 Pro is connected.
      (code -13)

• No issues found!
```

</details>