Make map_errno_from_nt_status() a generic call, not just a cli specific one.