Using the sys.processes system table to find current process (thread) details