Fix load count deadlock