Flamini set for new Milan deal