Here, tl has type ('a * 'b) list, your function expects a ('a * 'b) list ref because you wrote !attrList, so you should write findAttributeList (ref tl) x.
You should probably dereference the list before feeding it to the function. Also, you have two bugs on your if expression: the function will always iterate and never return true.