On the possible role of gravity in the reduction of the wave function