oscplot.c: Close FileChooser dialog before saving the plot as PNG
The FileChooser dialog window overlaps with the plot window at the moment the image is taken. It has been observed that on XFCE desktop environment the image gets corrupted in this situation.

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