sys/posix: changed parameters for `fd` from `kernel_pid_t` to `int`

this supersedes #1560 to resolve warnings on conflicting function pointers.
It seems that the function prototype does not follow the POSIX API or am I wrong?