Fixed test following 25c4e8e5beb3a53bafd3b91e55a3de07dba2812e
Made django-pglocks Python 3 compatible