An astonishing number of historic wall paintings have survived religious upheaval, climate-related damage and the passage of time. But they need our protection