memory plugin: Move calculation of the percentage to memory_submit().