libbladeRF: Fixed invalid memset and an invalid flash erase length