Add NSObject+Singleton.
Merge pull request #10762 from nh7a/master

Add NSObject+Singleton.