file-utils: Don't leaking fd on error path in gs_file_create()

This error was found by running Coverity.

Signed-off-by: Thomas Haller <thaller@redhat.com>
file-utils: fix wrong condition in open_nointr (open returns -1 on error)

This error was found by running Coverity.

Signed-off-by: Thomas Haller <thaller@redhat.com>