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 finalisation which could lead to unnecessary database accesses.

Original pull request: #234.