Add toStrongRef to KisWeakPtr
Weak pointers don't hold a strong reference, they may
become nullptr at any time. To use them safely, they always have bo be
converted to a strong reference. Further commits can then slowly move
over to users of weak pointers to first convert them to strong pointers
and introduce a check for nullptr at the same time.