I think you shouldn't. The lock does not move the rebalancing of kafka to the future. If some partitions are moved to another consumer your consumer that executed the old messages will fail upon commit since it doesn't own the partitions.
So stop handling those messages, but be sure that the new consumer seeks() to the previous messages.