factures: fix typeahead pièces race condition