A multi-epoch spectroscopic study of the BAL quasar APM 08279+5255: II. Emission- and absorption-line variability time lags