BlackBerry Ltd. has signed a deal to sell its Cylance security business to Arctic Wolf.