fix to type error for time_lock_doi_for

avoid it being set to a string, and handle it as a string if it has been set