Added sharedarray unlink tests. Minor cleanup in sharedarray.
Merge pull request #5595 from amitmurthy/amitm/shmemtest

Added sharedarray unlink tests. Minor cleanup in sharedarray.