ncursesw: fix _XOPEN_SOURCE_EXTENDED test in configure

Fixes configure script to actually run _XOPEN_SOURCE_EXTENDED
test when building ncurses with --enable-widec.