lottie: refactor mask handling of layer to a separate LOTLayerMaskItem object.