remove legacy OC_Filesystem being used in a hook callback

fixes #8737 

@karlitschek @icewind1991 @PVince81 THX