Projectivity of finitely generated flat modules over semilocal rings