A man who threatened to “blow himself up” in the small Western Australian coastal town of Esperance in April, prompting a lockdown, has walked free.