Fix several bugs related to delayed flow_mod processing