libnfs: Fix segfault if O_TRUNC fails when creating

Signed-off-by: Ross Lagerwall <rosslagerwall@gmail.com>