Unified static renormalization-group treatment of finite-temperature crossovers close to a quantum critical point