Default assert implementation calls fiprintf, which tries to acquire a lock and fails if it is executing in critical section or ISR