Threadlocals=True is the new default.
Replace get_id, set_id and pk_expr with private method names, fixes #435