Add memory checks on GetReceiveFolder mysql backend function

Initialize MessageClass prior call to openchangedb_get_ReceiveFolder
Fix small memory leak