Cybersecurity companies have had an easy time raising money in Silicon Valley over the last few years. But investors are starting to ask about profit and sustainability.