Fixed #22491 -- documented how `select_for_update() should be tested.

Thanks Andreas Pelme for the report.