[composer] Fix regression in locked map layers (fix #11089)