Nice find mor-mark. I'm amazed at the level of support this issue is getting. In my opinion, using MODX on cloud based servers, or racks, takes precedence over working on a new skin and so forth. I continuously keep bumping into this issue where cache files are appended before writing is finished, and due to the NFS mount, locking doesn't work right. This has been the case for at least the last 1,5 years since I started working with the pre-release and beta versions of Revolution.
Your solution, again, in my opinion, seems almost water tight, but loosing the MODX log file is a big and obvious downside- some logic should be written to avoid that. I couldn't care less if my error log seems messed up - as long as I have partial error logging.
If you turn up any more fixes, please let OpenGeek know too, as he supports the layer beneath MODX, xPDO.
@MarkGHErnst
Developer at Adwise Internetmarketing, the Netherlands.