.to_credential now assigns a parent

Metasploit::Credential::Core#to_credential will set the parent to the original core objext
Metasploit::Framework::Credential#to_credential also sets the parent to itself.
Merge pull request #3596 from darkbushido/bug/MSP-10937/adding-parent-to-cores-to-credential

.to_credential now assigns a parent