lib: Add map_unix_error_from_tdb