Simplify sys_getloginclass.
Just use current thread credentials as they have the same accuracy as the ones obtained from proc..