For ENG-5865, fix buggy double free check in DBBPool