write Descriptor Compat
fun BluetoothGatt.writeDescriptorCompat(descriptor: BluetoothGattDescriptor, payload: ByteArray): Int
Wraps BluetoothGatt.writeDescriptor in an SDK version agnostic API.
On SDK versions prior to Build.VERSION_CODES.TIRAMISU, we are forced to use the old version of this API which had memory safety issues.