backport QuerySet.select_for_update() from Django 1.4