kernel: Separate loading per process and per lwp notes

Per process notes have to be loaded and analyzed first in order to get
thread count.
kernel: Reset thread IDs after thawing from a checkpoint