Fix deadlock when calling functions recursively.

Fixes #6178
Disable timer unit tests.

Refs #6179