Enabled ast_log again and changed usleep during trylock to 1.