msi: Free the custom action data after the thread function executes.