Add read-only mode support

Allows bloomfilter files to be opened in read-only mode.
This is useful for example when files are opened over NFS
or rsynced between multiple servers.