jf: Enable btlock support in Bluedroid vendor lib

 * Also fix other BT settings.

Change-Id: Id0dc232ceccb85de8453ac2c25be6069fe2c707a
jf: Fix BCM4335 chip crashes caused by BT/WiFI concurrency

 * The stock B+ driver works around chip crash that occurs when WiFi is
   on and BT is enabled/disabled by sending a magic patch to the
   hardware.
 * This patch was not in an external file, so some reverse engineering
   was required to extract it and put it in the correct format.
 * Enable the prepatch and enjoy crash-free Bluetooth :)

Change-Id: I1ec8ec345c459ce97cc389d270b025ef61363018
fix script to work with arrays using bash instead of sh

Change-Id: I5a17cc90f8b523d9d7899bb4367da3acfbf3e002