Replication Server uses the rs_dsi_check_thread_lock function to check whether the current DSI executor thread is blocking another replicate database process. For example:
'select count(*) as seq from DBA_BLOCKERS
where holding_session in (select sid from v$session
where audsid = userenv('SESSIONID'));'