The answer to this question would be: prostate glands
The term upper end is a bit ambiguous and it should be better to call it the proximal end of the urethra. The upper ends of the urethra, near the bladder, there is an organ called prostate. The prostate is a gland that only found in males as its function was to produce seminal fluid, make it a bit alkali.