inout: fix threading issue in Importer

afterBulk of the listener is called from different threads, so the
failure/success counters need to be thread-safe.