SERVER-10664 Corrected const incorrectness of ptr<T> class.

Branch mhcox/SERVER-10664 contains fix for issue SERVER-10664.

Ran "scons" build.  Built successfully.