libbladeRF: Added loopback and clean SIGTERM handling to test_sync