fix for avoiding problems when other code redefine ctypes argtypes

As reported in issue 4252 on ipython a different definition of argtypes
on the console functions can cause crashes in pyreadline. This commit fixes
the issue for GetConsoleScreenBuffer but not for other functions.