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