refactor: rename curses api function with P prefix.

* ext/posix/curses.c: Rename C prefixed functions with P prefix.

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