Sean Lock was diagnosed with 'advanced' lung cancer but continued to work