fixes #509 Inherit lock type, do not specify it