Fix logical bug in fixed-size-allocator.

Affected the multi-threaded code path.
Fix capturelex race condition.