fix keyCopy()'s ignorance of flags

clear flags as they lead to failed keySetName() with
source/dest->flags=KEY_FLAG_RO_NAME

maybe introduced around adding KEY_FLAG_RO_NAME in #6f07e18f
(the same code already exists earlier in the file)