More Silicon Valley executives, even top brass, are using drugs on the job, a trend that puts general counsel and board members in an extraordinarily difficult spot, legal observers and academics say.