Two men wanted by NSW police, and an Australian pilot, have been detained in Indonesia for six months.