libbladeRF: test_sync - bladerf_enable_module() thread safety fix

As stated in the API documentation, control calls must only be executed
in one context at a time. A lock has been added to ensure this in the
test_sync program