It is not true that government employees, including security and police officers are forbidden to leave the country.
In fact, they were ordered to surrender their passports to their employers. It's one of the factors why several Russian travel companies got out of business in the last few weeks.