osc/sm: fix bugs in window initialization and finalization

Fixed two bugs:

 - Use module->comm NOT comm to get the CID for the shared memory backing
   file. This fixes the case where there are multiple shared memory windows
   at the same time.

 - Remember to unlink the shared memory backing file.

Refs #4438

cmr=v1.8:reviewer=jsquyres