Periodic locking of chaos in semiconductor lasers with optical feedback