Towards a better understanding of the distance scale from RR Lyrae variable stars: A case study for the inner halo globular cluster NGC 6723