DATAMONGO-1076 - Avoid resolving lazy-loading proxy for DBRefs during finalize.

We now handle intercepted finalize method invocations by not resolving the proxy. Previously the LazyLoadingProxy tried to resolve the proxy during finalization which could lead to unnecessary database accesses.

Original pull request: #234.