Constructing (Almost) Rigid Rings and a UFD Having Infinitely Generated Derksen and Makar-Limanov Invariants