Hack to workaround the delete-on-close bug in Dokan.