Additional mutex protection for JNI calls

Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
Prevent crash in instrument viewer

Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
Make bluetooth feature optional

Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>