What can be done to make profile data use safer and friendlier?

What can be done to catch stale locks?

What can not be done to the profile lock?