Set/preserve errno in rk_strerror_r()