Provide better support for multi-threaded artifact generation from xmi

Change-Id: I6b6e9a992b83b0b7e65c709e21dc5a8ba1c08237
Reviewed-by: Sandro S. Andrade <sandroandrade@kde.org>