Turning left and motorcycle sqreesh and then engine stall!

I am in 3rd gear (XF200) on one lane street (speed limit is 40) and wants to turn left but car coming opposite direction was a bit fast and had to slow down using front break. Engine stall and back wheel locks. Luckily no car behind me. Pulled clutch and pushed the bike to far right. Started bike and then went on. I do this all the time but do not have to slow that much.

Should I have greared down to 2nd or 1st? Or all is needed is to feather clutch to control bike? what is best way to handle such a situation?