Bug 939601 - Refactor current thread assert into helper.  r=cpearce