I tried it again and it seems that the mirror lock up function works fine when the lens' aperture is in the preview mode.