We compare the low frequency (~1 kHz) anelastic spectra of La_{2-x}Sr_xCuO_4
and La_{2-x}Ba_xCuO_4 at x = 0.03 and 0.06 in the temperature region where the
freezing into the cluster spin-glass (CSG) phase occurs and is accompanied by
an increase of the acoustic absorption. The dependence of the amplitude of the
anelastic relaxation on doping is explained in terms of movement of the domain
walls (DW) in the CSG phase between the Sr (Ba) pinning points. The LBCO sample
at x = 0.06 transforms into the LTT structure below 40 K and the amplitude of
the anelastic anomaly is 7 times smaller than expected, indicating pinning of
the DW which run parallel to the LTT modulation. Such DW can be identified with
the stripes of high hole density, and the present measurements show that they
are mobile between the Sr (Ba) pinning points down to few kelvin, but become
static in the presence of LTT modulation also far from the condition x = 1/8
for commensurability between stripe and lattice periodicities.Comment: 4 figure