Fixing deadlock in refcntbufferpool