make set_dontkillme available outside the locking code.
remove dead prototype.