master: Add function calculating fsnode checksum

To speed up metadata backup, the master calculates checksum of the metadata
and checks it against checksum of the metarestore's current metadata, which
runs independently. To do that we need checksum of the `struct fsnode`.