Copy and restore operations apply exclusive host utility (HUT) locks on all objects to be copied or restored.
SQL User-Defined Function
When you copy a SQL User-Defined Function, the corresponding DBC.DBASE row is locked with a write hash lock. This prevents the user from using any Data Definition Language on that database for the dictionary phase of the copy operation.