Additional locks are added. This is primarily to cover a potential race condition where the pool is resized from another thread during a get operation.
Keeps track of previous allocations as well as current allocations, as the previous allocation will be the one of interest in many cases for dangling RIDs.
Prints the file / line number in the error message, instead of using print_verbose.