Actually, many Communists were hypocrites in this sense, even during the height of the the Soviet heyday of atheism.
This doesn't surprise me the least.
And for the record, those "millions" of "atheist" Communist party members who were soldiers during the second world war, were so for practical reasons, just as Gorbachev is, for other practical reasons.
If an ordinary soldier died, his family was not notified.
Such is the care and concern for the people in socialist paradises.
But if a member of the Communist party died, his family was notified.
On the eve of most major battles, enrollment in the Communist party skyrocketed.
Things are rarely as they seem to be.