The Scottish Labour leader accused the party of not being serious about its plans to build migrant detention centres only in Green constituencies.