Stephen Flynn has been criticised by SNP colleagues after saying he would stay on at Westminster, even if elected to Holyrood.