synchronize some http handlers to guarantee operation safety