libbladeRF: Updated sync.c to use CONFIG_GPIO wrappers

Calling the top-level bladerf_* functions will yield deadlock.
libbladeRF/test: Added random gap-size to timestamps RX test