Refactor pool to remove blocking deqeue.