fix bug in unlinking shmem segment
fix shmem unlink : removed redundant closure
Merge pull request #5487 from amitmurthy/amitm/shmem_unlinkfix

fix bug in unlinking shmem segment