BUG: fix construction of NonConsolidatableBlock with inconsistent ndim (#27786)
Manual backport of https://github.com/pandas-dev/pandas/pull/27786, meeseeksdev seemed to be inactive for a moment (PR was properly milestoned).