Move device creation to thread in barst.