It seems the upgrade/restore process for iOS5 is less then reliable with reports coming out of users having their phones deactivated when attempting the process
Symptoms include not being able to input your iPhone pass code
If this happens to you a remote wipe of your iPhone using MobileMe or iCloud should bring the phone back to an operable state.