EZP-22133: Removed final keyword on sudo() function

To be proxy-able, public functions must be extendable. final keyword prevents that.
EZP-22133: Fixed tests
Merge pull request #673 from ezsystems/fix_EZP-22133_sudoNotWorking

EZP-22133: sudo not working with lazy repository