refactor: use _helpers.c checkint and optint in curses submodule.

* ext/posix/curses.c: Use checkint and optint throughout instead
of luaL_checkint & luaL_checknumber and luaL_optint resp.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>