osc: fix segfault when trying to capture with no devices attached

Signed-off-by: Tim Harder <timothy.harder@analog.com>