MB-20054: Fix windows build error by adding size() func in class AtomicQueue