No need to worry my friend. Updating SIN with new expiry date should be done. Having said that by not updating you did not work illegally. Not having a valid work permit would make your work illegal not an expired SIN. A SIN is not an immigration document, it only help employer make payroll...