Merge changes I2b5a6989,Ie3d61458 into nyc-dev

* changes:
  Reset TSMS when the device is unlocked.
  Add copy-on-write mode to TextServicesSettings.