A vice president for a Silicon Valley software company is behind bars accused of stealing thousands of dollars’ worth of Legos from Target and selling the assembled kits on eBay.