test: enable reindex readonly test on *BSD
see https://github.com/bitcoin/bitcoin/pull/27850#discussion_r1349505585
OpenBSD and FreeBSD don't have chattr but they do have chflags, use that method to make the block file immutable for the reindex_readonly test.
Written and tested on a VPS running FreeBSD:
FreeBSD freebsd-13-1 13.2-RELEASE-p4 FreeBSD 13.2-RELEASE-p4 GENERIC amd64