D: Minor code cleanup in thrift.internal.resource_pool.

Because of oddities in the standard library at the time Thrift/D
was written the code was a bit uglier than necessary.