[KERNEL][THREAD] uid and gid now have proper type
[KERNEL/USER] Change vfs API to allow kernel to use it