A man has been cleared of making death threats to a tech chief executive on a chat forum but admitted refusing to give police his phone pass code while they were investigating the case.