All Countries have Customs even U.S/E.U/U.K and it takes them from 1 to a week to clear it from customs, if the shipment is coming from another country it has to go through customs, the package that was in Bahrain, that is just a scan for checking purposes and a scan check up not a " Real " custom check because it's not getting delivered to Bahrain it's just a transit shipment.
In Reality it depends on the mood of the employee, and how many loads of shipment they have to clear.
Not really most packages don't get opened. it depends on the description of the package and the weight and the labeling and the item value that is declared on the shipment.
Note : Worked in shipping companies