Fix a deadlock when several gorountines try to get the botstats.