Workaround bug in PDCurses wresize

If the current cursor position fell outside the new window dimensions, it would be moved to just-outside - which is still outside
We can workaround this by checking if it is outside, and moving it inside if so
Merge commit '71adb95' into bfgminer-3.0.x