[PATCH v3 12/13] flow: Enforce that freeing of closed flows must happen in deferred handlers