Before Hamam al-Hammami stood behind his captain on FlyDubai Flight 1073 and raised an emergency ax to begin the assault that nearly brought down the plane, there had been ample opportunity for authorities in three countries to keep him from getting anywhere near that cockpit. Oman had scrutinized his online habits and decided he showed…