ENG-5393: Properly destruct member in CopyOnWriteTest.