Fix socket permissions after master-failover