Quantizing higher-spin gravity in free-field variables