Smart ptr updates.

- Renamed smart-ptr-equivalent and unit test to just memory.
- Added expired() and lock(), unit tests.