HELSINKI (Reuters) - Canada's Research In Motion (RIM) has lost a contract dispute over the use of Nokia patents in a case which could halt sales of its BlackBerry phones if it does not reach a deal to pay royalties to the Finnish company.