fix non persistent changes to file

when using MAP_PRIVATE with mmap(), the content is not updated in the
filesystem. Only the mapping is changed.

fixed by replacing MAP_PRIVATE by MAP_SHARED

Signed-off-by: Olivier Gayot <duskcoder@gmail.com>