osc.c: Plugins: Reattach plugins when attempting to destroy their window

Signed-off-by: Dan Nechita <dan.nechita@analog.com>