Enhancement: modernize codebase

This PR [modernize](https://pkg.go.dev/golang.org/x/tools/gopls/internal/analysis/modernize)s the codebase: it removes syntax that used to be idiomatic but now has better alternatives

https://github.com/cs3org/reva/pull/5408
