(FACT-715) Fix LXC detection code on old OpenVZ

LXC detection code raises errors on old OpenVZ. Avoid terminating by
catching failures and returning false.