[PATCH openEuler-22.03-LTS-SP1 1/2] Bluetooth: Consolidate code around sk_alloc into a helper function