SERVER-15369 Explicitly write zeros when creating ns files

Backported from commit b39f5ccc3e5c74918c8f2cd46d33c5b6316f4b06