Advisory locks do not act like the locks in MSSQL, Postgresql will ignore advisory locks for other transactions, its up the applications layer to poll/ obey/ enforce advisory locks
You can do the type of locking as in MSSQL with Postgresql but its avoided in practice as that is the point of MVCC, allow the database to handle locking/updating of resources. Odds of Deadlocks go way down...