code: @Beta
      public static <T> Consumer<T> sc(final Object mutex, final Consumer<T> consumer) {
          N.checkArgNotNull(mutex, "mutex");
          N.checkArgNotNull(consumer, "consumer");
  
          return new Consumer<T>() {
              @Override
              public void accept(T t) {
                  synchronized (mutex) {
                      consumer.accept(t);
                  }
              }
          };
      }
docs: Synchronized {@code Consumer}
  
  @param mutex to synchronized on
  @param consumer
  @return