Sam Curran's hopes of a Test comeback have been put on hold as he undergoes surgery on a groin injury.