Raw string writing into file; autolocking pattern
A number of methods used the same pattern of doing something in the
context of autolock present or not. This commit exposes this pattern
and makes it reusable.
Additionally a method is available to write a string directly to the
Memory-Mapped file.
Merge pull request #3 from flq/write_file

Raw string writing into file; autolocking pattern