Phase locking and current reversals in deterministic underdamped ratchets