pothos-sdr: make mutex, move to cpp, fix stream init