Well, yeah. No records should <i>ever</i> be deleted from system files.
System files should never be opened except by the system, through functions that are provided for those files. For QHST*, a provided function is DSPLOG.
When system files are opened for update, update locks are established that can interfere with the system’s ability to perform its own functions.
If no actual updates were done, then the best action to take is ending your job and starting a fresh session. If that doesn’t clear the problem or if it shows a new problem, the next step that I’d take would be RCLSTG SELECT(*DBXREF).
Even if the DB xref isn’t out of sync, the act of going to restricted state and coming back up might clear the condition. And if that isn’t enough, then an IPL would be next.
It’s possible that that QHST* file is not in a proper state. Rows might not have appropriate values. It might be necessary to generate a new QHST* file to get past the problem.