trunk-tracking: use PthreadSharedMem

The SystemRewriteDriverFactory now needs an AbstractSharedMem*
in its constructor. Give it a PthreadSharedMem*.