Deserializer still hangs under recv failure: Closes #5321
Deserializer still hangs under recv failure: Closes #5321

Third time's the charm -- certain conditions still allowed for the
closed semaphore not to be notified, causing a hang at close.

martinra/geary,githubnemo/geary,jimbonator/geary,glebihan/geary,githubnemo/geary,martinra/geary,aatishnn/geary,glebihan/geary,orlandosanchez/geary,robol/geary,AtticHacker/geary,aatishnn/geary,geekvigilante/geary,tshikaboom/geary,kyoushuu/geary,orlandosanchez/geary,aatishnn/geary,rschroll/geary,tshikaboom/geary,didrocks/geary,emersion/geary,tshikaboom/geary,orlandosanchez/geary,robol/geary,kyoushuu/geary,kpiwko/geary,dominickm/Geary,AtticHacker/geary,rschroll/geary,emersion/geary,mjog/geary,jimbonator/geary,martinra/geary,abn/geary,dominickm/Geary,mjog/geary,MohamedIM/geary-unofficial,jimbonator/geary,robol/geary,mjog/geary,AtticHacker/geary,githubnemo/geary,glebihan/geary,emersion/geary,mpdeimos/geary