0.03--new temp_is_locked function

pulled from github 12 Jan 2014