os: leveldbstore: use scoped_ptr instead of managing them manually

Signed-off-by: Greg Farnum <greg@inktank.com>