(mc_fstat): fix function used to set up of errno value.