Describe a scenario where priority inversion occurs and explain how a priority inheritance protocol resolves it in embedded RTOS systems.