libfs: better typing on write-access error check
libfs: better typing on write-access error check

Suggested by taruti.

Issue: #15935

keybase/client,keybase/client,keybase/client,keybase/client,keybase/client,keybase/client,keybase/client,keybase/client,keybase/client,keybase/client,keybase/client,keybase/client