[sanlock] 01/01: python: add thread lock around register