Added lock functionality to SMS. Allow sendSMS to be synchronized