Add sync method that calls msync internally