fix bug #2848 that allowed Recycler to cache more objects than maxCapacity if maxCapacity was not a power of two