ofproto: Optimize the case of a repeated learn action execution.