[sgen] Refactor pointer queue out of pinning code.
Merge pull request #1246 from schani/feature-separate-pointer-queue

[sgen] Refactor pointer queue out of pinning code.