imgdev: fix cancelling of enrollment from stage_completed callback
imgdev: fix cancelling of enrollment from stage_completed callback

Re-check device state after fpi_drvcb_enroll_stage_completed().
If enrollment was cancelled after non-completing stage, we must
not restart acquire as it would confuse the internal state machine.

https://bugs.freedesktop.org/show_bug.cgi?id=57829

micw/libfprint,Gnate/libfprint,abhishekgahlot/fprint-bsapi,PDXostc/libfprint,ccsystems/libfprint,PDXostc/libfprint,micw/libfprint,yingted/etes603,payden/libfprint,zOrg1331/libfprint,Gnate/libfprint,jipumarino/libfprint,anarsoul/libfprint,ccsystems/libfprint,freedesktop-unofficial-mirror/libfprint__libfprint,micw/libfprint,PDXostc/libfprint,yingted/etes603,hyperair/fprint-bsapi,rmarku/libfprint,zemen/libfprint,freedesktop-unofficial-mirror/libfprint__libfprint,sbambrough/libfprint_extended,zOrg1331/libfprint,rmarku/libfprint,abhishekgahlot/fprint-bsapi,hyperair/fprint-bsapi,payden/libfprint,anarsoul/libfprint,Gnate/libfprint,sbambrough/libfprint_extended,freedesktop-unofficial-mirror/libfprint__libfprint,jipumarino/libfprint,rmarku/libfprint,hyperair/fprint-bsapi,abhishekgahlot/libfprint,yingted/etes603,FabriceSalvaire/libfprint-baspi,payden/libfprint,zemen/libfprint,zOrg1331/libfprint,zemen/libfprint,jipumarino/libfprint,FabriceSalvaire/libfprint-baspi,abhishekgahlot/libfprint,FabriceSalvaire/libfprint-baspi,abhishekgahlot/libfprint,abhishekgahlot/fprint-bsapi,ccsystems/libfprint,sbambrough/libfprint_extended,iafilatov/libfprint