AFAIK yes this is the correct way to use multiple lwlocks.
pgsql-general by date:
Соглашаюсь с условиями обработки персональных данных