[utils] Fix resolveProps to correctly merge slotProps defined as functions (#48955)