PDFBOX-1568: removed most of the direct accesses to the scratch file of a COSDocument

git-svn-id: https://svn.apache.org/repos/asf/pdfbox/trunk@1479136 13f79535-47bb-0310-9956-ffa450edef68