Force buffer copy while cursor is still alive.

Without this py-lmdb mutates the buffer on exiting the for loop, since
forward() iterator will die, and so will its underlying py-lmdb Cursor.