Update the cookies before trying to sync.  This is to fix the bug where if a cookie expired, the layers got marked as read only