stop leaking lock structs in some simple cases