Phase-noise measurement in a cavity with a movable mirror undergoing quantum Brownian motion