posix: implement realpath properly, fixes GCC segfault
posix: added a call that can be used to check whether a given memory address is safe for the kernel to use.

This should now be used on every memory address passed to the kernel from userspace.