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

Thanks Andreas Pelme for the report.
please use 4 space indent
missing ` after select_for_update() on this line (but actually all instances of single ` should be `` for proper formatting)