An 18-year-old San Jose man is accused of manufacturing 27 ghost guns in his bedroom, including some modified to function like machine guns, prosecutors said.