Squash to couch_file ref counter refactor