From what you have written, it was clear that the liquor store clerk was able to lock the store's doors and hold you hostage over the dispute involving the lottery ticket. What the clerk did was legally improper. I would write the store's owner and make a complaint about what transpired.