libnfs: Fix segfault if O_TRUNC fails when creating

Signed-off-by: Ross Lagerwall <rosslagerwall@gmail.com>
Merge pull request #93 from rosslagerwall/fix-segv

libnfs: Fix segfault if O_TRUNC fails when creating