Initial import of Percona patches to Galera 3.x.