I think the human task Service is a pluggable component and is different from other tasks.
Also I don't think It is the right approach to use Task table to map between session and a process instance.
Suppose if your process definition doesn't contain a User task how can you retrieve the session , process instance relation ?