testnode: properly support deletion of chmod'ed files
The implementation from 0341ea0d did not cover the case where directory was readble but not writeable.
The implementation from 0341ea0d did not cover the case where directory was readble but not writeable.