Do not mess with command flags, instead unlock/lock key. Otherwise final ack will be sent without lock and will be processed in non-blocking pool in parallel with blocking replies, which will force client to drop some of its replies (which have not been yet processed).