osc.c: find_setup_check_fct_by_devname(): Fix crash in test mode
osc: plugins: stop threads

Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>