lua : delegate post-import events to a sub-thread

this avoids locking the UI when importing single images instead
of directories