sm: add shared memory stubs