This was the behavior before the commit yesterday that unified the two methods of computing the preferred size. It seems some applications expect this to be callable without a window lock, so this works when the other method does not. Fixes #16372.