Add lock to "sync_gmail"