I imagine it is safe, some women undergoing fertility treatments are getting ultrasounds to check for different stuff around ovulation and implantation times, so since they won't even be specifically in your uterus, it seems OK to me. I mean, what else are you going to do? I suppose you could wait a few more days/weeks for the kidney ultrasound, but I don't know how urgent your specific condition is.