Move config check forward in p4est_base.h