Thread Safe resource Pool