Fixed lock expiration bug and mongodb 2.6 error object issue.