De Giorgi's measure and thin obstacles