[Bluetooth] Add locking for bt_proto array manipulation