Test Promise boolification.
Tests for Lock.
Update thread.t for API change.