Fixup "thread API & CPU session: accounting of CPU quota"

ref #1275