[Bug 43224] Freelist scan can result in O(n) time when allocating