Fix memory leak due to mongo cleaner thread which wait forever

Jira in which I described the problem https://jira.mongodb.org/browse/JAVA-831