Fix crash when timeout while resource is unavailable in the AbstractResourcePool
(code has been rewritten complete, so future testing is needed)