WeWork Inc WE.N said it turned a core profit in December for the first time since it went public, helped by cost cuts