testnode: properly support deletion of chmod'ed files

The implementation from 0341ea0d did not
cover the case where directory was readble but not writeable.
1 job for fix/testnode_rmdir_2
in 0 seconds, using 0 compute credits, and was queued for 0 seconds