Deadly attacks in Thailand and the Philippines have put gun laws under scrutiny while raising questions about a broader problem of firearm access, accountability and enforcement.