changed parameters form `kernel_pid_t` to `int`
Merge pull request #1561 from BytesGalore/fix_fd_parameter_warnings

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