Pitfalls in Language Models for Code Intelligence: A Taxonomy and Survey