only retain ram msgs when inserting into pending_ack
which keeps memory use constant during fetch operations
Merged bug25373
Merge heads