Method for preparation of 3-oxo-2,3,4,7-tetrahydrothiazolo[3,2-a]pyridines