riscv64 is failing due to missing atomic ops in gcc 12.
This commit works around the problem by linking against libatomic.
It can be reverted when we switch to gcc 13 (#268097)
Indeed there is few to no reason to call this "isBootstrap" since we do not
build cmake by using a previous cmake.
Also, add a warning to the use of the old option.