Properly AFS_GUNLOCK() when returning an error after having previously