Fix crazy init error

The "flags" member was the wrong size, so the flag
mask wasn't making it into libgit2's domain in a readable form.