Allow lock method name configuration, closes #1