make sure that the users file system is initialized before we emit the post hook (master)

This was already merged to stable7, let's see if it also works on master https://github.com/owncloud/core/pull/11364

cc @DeepDiver1975 @icewind1991 
I guess this situation can only ever happen when running unit tests ?