Made AisHandler and AisLayer thread-safe (EPD-57)