pjax: Only release the ticket lock once