Fix #1023: Mismatch of LMCS encoder and decoder for multiple slices
This merge request provides a solution to fix #1023: Mismatch of LMCS encoder and decoder for multiple slices. It solves the issue by applying LMCS for each slice based on slice level flag instead of applied for the entire picture.