regedit: fix issue with wattr_get

Some GCC versions will complain about the macro version of wattr_get.
This patch forces the function to be called instead as recommended here:

http://lists.gnu.org/archive/html/bug-ncurses/2013-12/msg00017.html