btl/varer: report an error when a segment cannot be attached

backport from open-mpi/ompi@d60f0cbd8850ab8e4ee4a463872ae4c36031c2f7

@hjelmn could you please review this ?