Fixed memory-mode issue with threads

Previously we were reading in the database for each thread, which
could cause issues if the database changed out from under us.
Make MemoryStream read-only
Removed unnecessary lock

This lock shouldn't be needed.
Merge pull request #1 from maxmind/greg/memory-mode-thread-fix

Fixed for memory mode