SERVER-6018 Add missing volatile