Chemists threaten to give up licences