lua : fix crash or deadlock when leaving DT while lua is running
add storage and storage_param to dt_imageio_export

these are set to NULL where they don't make sense.
The point is to pass them to the signal to be caught by lua
lua: export storage and format as extra parameters to the intermediate file event