Man admits to locking thousands of Windows devices in extortion plot