Forterra Systems Inc., a California startup focused on virtual reality, was in need of money and its products didn’t have much commercial appeal. Then funds came in from a source based far from Silicon Valley: In-Q-Tel Inc., a venture-capital firm in Virginia funded by the Central Intelligence Agency.