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