Fix mmap_bitarray; extend it to Windows

Also add tests.
Fixes breakage introduced in d4d433d756
Merge pull request #4705 from JuliaLang/cb/bitmmapfix

Fix mmap_bitarray; make it available in Windows