Upper bound on gluino mass from thermal leptogenesis