meant unlock, not lock
still getting segfault