Coalesce warnings for deprecated lifecycle hooks and print single message after reconciliation (rather than one per component-type).

Relates to PR #12028 and [this comment](https://github.com/facebook/react/pull/12028#discussion_r162420575).
if (__DEV__) {
      ReactStrictModeWarnings.flushPendingAsyncWarnings();
    }
    while (nextEffect !== null) {
      const effectTag = nextEffect.effectTag;
      if (effectTag & (Update | Callback)) {
        recordEffect();
        const current = nextEffect.alternate;
        commitLifeCycles(current, nextEffect);
      }
      if (effectTag & Ref) {
        recordEffect();
        commitAttachRef(nextEffect);
      }
      if (effectTag & Err) {
        recordEffect();
        commitErrorHandling(nextEffect);
      }
      const next = nextEffect.nextEffect;
      
      
      
      
      nextEffect.nextEffect = null;
      
      
      nextEffect = next;
    }
  }
  function commitRoot(finishedWork: Fiber): ExpirationTime {