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

this supersedes #1560 to resolve warnings on conflicting function pointers.