Police were called in when level crossing gates between Worthing and East Preston were stuck open due to a fault.