Fix DB.Copy() meta lock and partial write checks.
Merge pull request #92 from benbjohnson/safe-copy

Fix DB.Copy() meta lock and partial write checks.