Make obtain_lock() static.
Make lock_exit() static.