use a non-recursive chmod on the datadir

Chmod'ing only to datadir also achieves the goal of making the datadir inaccessible for other users.

Fixes #7711 

(this was the only use of `OC_Helper::chmodr`)

cc @karlitschek @ser72 @DeepDiver1975