In Oracle Database 18C very popular popular procedure DBMS_LOCK.SLEEP is also available in package DBMS_SESSION.
Procedure DBMS_LOCK.SLEEP is now obsolete however still available in 18C for backward compatibility. You need to think about upgrade code.